package com.example.applyforaid.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AidProjectExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AidProjectExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(String value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(String value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(String value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(String value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(String value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLike(String value) {
            addCriterion("project_id like", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotLike(String value) {
            addCriterion("project_id not like", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<String> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<String> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(String value1, String value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(String value1, String value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidIsNull() {
            addCriterion("project_starter_uid is null");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidIsNotNull() {
            addCriterion("project_starter_uid is not null");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidEqualTo(String value) {
            addCriterion("project_starter_uid =", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidNotEqualTo(String value) {
            addCriterion("project_starter_uid <>", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidGreaterThan(String value) {
            addCriterion("project_starter_uid >", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidGreaterThanOrEqualTo(String value) {
            addCriterion("project_starter_uid >=", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidLessThan(String value) {
            addCriterion("project_starter_uid <", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidLessThanOrEqualTo(String value) {
            addCriterion("project_starter_uid <=", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidLike(String value) {
            addCriterion("project_starter_uid like", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidNotLike(String value) {
            addCriterion("project_starter_uid not like", value, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidIn(List<String> values) {
            addCriterion("project_starter_uid in", values, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidNotIn(List<String> values) {
            addCriterion("project_starter_uid not in", values, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidBetween(String value1, String value2) {
            addCriterion("project_starter_uid between", value1, value2, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectStarterUidNotBetween(String value1, String value2) {
            addCriterion("project_starter_uid not between", value1, value2, "projectStarterUid");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdIsNull() {
            addCriterion("project_clothes_type_set_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdIsNotNull() {
            addCriterion("project_clothes_type_set_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdEqualTo(String value) {
            addCriterion("project_clothes_type_set_id =", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdNotEqualTo(String value) {
            addCriterion("project_clothes_type_set_id <>", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdGreaterThan(String value) {
            addCriterion("project_clothes_type_set_id >", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdGreaterThanOrEqualTo(String value) {
            addCriterion("project_clothes_type_set_id >=", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdLessThan(String value) {
            addCriterion("project_clothes_type_set_id <", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdLessThanOrEqualTo(String value) {
            addCriterion("project_clothes_type_set_id <=", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdLike(String value) {
            addCriterion("project_clothes_type_set_id like", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdNotLike(String value) {
            addCriterion("project_clothes_type_set_id not like", value, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdIn(List<String> values) {
            addCriterion("project_clothes_type_set_id in", values, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdNotIn(List<String> values) {
            addCriterion("project_clothes_type_set_id not in", values, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdBetween(String value1, String value2) {
            addCriterion("project_clothes_type_set_id between", value1, value2, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectClothesTypeSetIdNotBetween(String value1, String value2) {
            addCriterion("project_clothes_type_set_id not between", value1, value2, "projectClothesTypeSetId");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeIsNull() {
            addCriterion("project_start_time is null");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeIsNotNull() {
            addCriterion("project_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeEqualTo(Date value) {
            addCriterion("project_start_time =", value, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeNotEqualTo(Date value) {
            addCriterion("project_start_time <>", value, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeGreaterThan(Date value) {
            addCriterion("project_start_time >", value, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("project_start_time >=", value, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeLessThan(Date value) {
            addCriterion("project_start_time <", value, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("project_start_time <=", value, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeIn(List<Date> values) {
            addCriterion("project_start_time in", values, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeNotIn(List<Date> values) {
            addCriterion("project_start_time not in", values, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeBetween(Date value1, Date value2) {
            addCriterion("project_start_time between", value1, value2, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("project_start_time not between", value1, value2, "projectStartTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeIsNull() {
            addCriterion("project_end_time is null");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeIsNotNull() {
            addCriterion("project_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeEqualTo(Date value) {
            addCriterion("project_end_time =", value, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeNotEqualTo(Date value) {
            addCriterion("project_end_time <>", value, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeGreaterThan(Date value) {
            addCriterion("project_end_time >", value, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("project_end_time >=", value, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeLessThan(Date value) {
            addCriterion("project_end_time <", value, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("project_end_time <=", value, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeIn(List<Date> values) {
            addCriterion("project_end_time in", values, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeNotIn(List<Date> values) {
            addCriterion("project_end_time not in", values, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeBetween(Date value1, Date value2) {
            addCriterion("project_end_time between", value1, value2, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("project_end_time not between", value1, value2, "projectEndTime");
            return (Criteria) this;
        }

        public Criteria andProjectNameIsNull() {
            addCriterion("project_name is null");
            return (Criteria) this;
        }

        public Criteria andProjectNameIsNotNull() {
            addCriterion("project_name is not null");
            return (Criteria) this;
        }

        public Criteria andProjectNameEqualTo(String value) {
            addCriterion("project_name =", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotEqualTo(String value) {
            addCriterion("project_name <>", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameGreaterThan(String value) {
            addCriterion("project_name >", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameGreaterThanOrEqualTo(String value) {
            addCriterion("project_name >=", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameLessThan(String value) {
            addCriterion("project_name <", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameLessThanOrEqualTo(String value) {
            addCriterion("project_name <=", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameLike(String value) {
            addCriterion("project_name like", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotLike(String value) {
            addCriterion("project_name not like", value, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameIn(List<String> values) {
            addCriterion("project_name in", values, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotIn(List<String> values) {
            addCriterion("project_name not in", values, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameBetween(String value1, String value2) {
            addCriterion("project_name between", value1, value2, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectNameNotBetween(String value1, String value2) {
            addCriterion("project_name not between", value1, value2, "projectName");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedIsNull() {
            addCriterion("project_deleted is null");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedIsNotNull() {
            addCriterion("project_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedEqualTo(Boolean value) {
            addCriterion("project_deleted =", value, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedNotEqualTo(Boolean value) {
            addCriterion("project_deleted <>", value, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedGreaterThan(Boolean value) {
            addCriterion("project_deleted >", value, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("project_deleted >=", value, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedLessThan(Boolean value) {
            addCriterion("project_deleted <", value, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("project_deleted <=", value, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedIn(List<Boolean> values) {
            addCriterion("project_deleted in", values, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedNotIn(List<Boolean> values) {
            addCriterion("project_deleted not in", values, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("project_deleted between", value1, value2, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("project_deleted not between", value1, value2, "projectDeleted");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelIsNull() {
            addCriterion("project_required_level is null");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelIsNotNull() {
            addCriterion("project_required_level is not null");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelEqualTo(Integer value) {
            addCriterion("project_required_level =", value, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelNotEqualTo(Integer value) {
            addCriterion("project_required_level <>", value, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelGreaterThan(Integer value) {
            addCriterion("project_required_level >", value, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("project_required_level >=", value, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelLessThan(Integer value) {
            addCriterion("project_required_level <", value, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelLessThanOrEqualTo(Integer value) {
            addCriterion("project_required_level <=", value, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelIn(List<Integer> values) {
            addCriterion("project_required_level in", values, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelNotIn(List<Integer> values) {
            addCriterion("project_required_level not in", values, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelBetween(Integer value1, Integer value2) {
            addCriterion("project_required_level between", value1, value2, "projectRequiredLevel");
            return (Criteria) this;
        }

        public Criteria andProjectRequiredLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("project_required_level not between", value1, value2, "projectRequiredLevel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}